package com.itheima.Enum;

import lombok.Getter;

@Getter
public enum ProjectStatusEnum {
    TOREVIEW(0,"待审核"),
    UNDERREVIEW(1,"审核通过"),
    ISREVIEW(2,"审核不通过"),
    NOREVIEW(3,"驳回");
    private Integer status;
    private String desc;
    ProjectStatusEnum(Integer status,String desc){
        this.desc = desc;
        this.status = status;
    }

    public static ProjectStatusEnum getStatus (Integer status){
            for (ProjectStatusEnum item: ProjectStatusEnum.values()){
                if (item.getStatus().equals(status)) {
                    return item;
                }
            }
        return null;
    }



}
